<template>
    <div class="body">
    <div class="shell">
        <img src="/img/cardGround.jpg" alt="" class="cover">
        <div class="head">
            <div class="data">
                <div class="title">山<span>*</span></div>
                <div class="subTitle">Freash coder</div>
            </div>
        </div>
        <div class="foot">
            <div class="tags">
                <span class="tag">#TS</span>
                <span class="tag">#Java</span>
                <span class="tag">#SQL</span>
                <span class="tag">#PS</span>
                <span class="tag">#PR</span>
            </div>
            <div class="social-links">
                <a href="https://weixin.qq.com/" target="_blank" class="social-link" title="微信">
                    <img class="social-icon" src="" alt="微信" />
                </a>
                <a href="https://im.qq.com/" target="_blank" class="social-link" title="QQ">
                    <img class="social-icon" src="" alt="QQ" />
                </a>
                <a href="https://leetcode.cn/" target="_blank" class="social-link" title="力扣">
                    <img class="social-icon" src="" alt="力扣" />
                </a>
                <a href="https://gitee.com/" target="_blank" class="social-link" title="Gitee">
                    <img class="social-icon" src="" alt="Gitee" />
                </a>
            </div>
        </div>
    </div>
    </div>
</template>
<script setup lang="ts">
</script>

<style scoped>
        * {
            padding: 0;
            margin: 0;
            box-sizing: border-box;
        }

        .body {
            width: 100%;
            height: 100%;
            display: flex;
            justify-content: center;
            align-items: center;
            animation: body 1.5s ease-in-out;
        }


        .shell {
            width: 100%;
            height: 100%;
            border-radius: 30px;
            background: #f4f4f4bd;
            position: relative;
        }

        .head {
            height: 340px;
            position: relative;
            overflow: hidden;
            z-index: 1;
        }

        .head::before {
            content: '';
            width: 100%;
            height: 100%;
            position: absolute;
            background: url("/img/cardGround.jpg");
            opacity: 0.9;
            background-size: cover;
            z-index: -1;
            transform: skewY(-4deg);
            transform-origin: 0 0;
        }

        .cover {
            position: absolute;
            top: 190px;
            left: 25px;
            width: 200px;
            height: 200px;
            z-index: 2;
            border-radius: 600px;
            border: 10px #fff solid;
            box-shadow: 0 5px 10px #00000065;
        }

        .data {
            padding: 190px 0 0 280px;
        }

        .data .title {
            text-shadow: 0 0 20px #000;
            color: white;
            font-size: 50px;
            font: 900 50px '';
            margin-bottom: 5px;
            position: relative;
        }

        .data .title span {
            position: absolute;
            top: 17px;
            margin-left: 12px;
            background: #ffe44c;
            border-radius: 5px;
            color: #000000;
            font-size: 14px;
            padding: 0px 4px;
        }

        .data .subTitle {
            color: #fff;
            font: 500 24px '';
        }

        .foot {
            line-height: 26px;
            color: #444;
            height: 100%;
        }

        .tags {
            display: flex;
            flex-wrap: wrap;
            padding-left: 30px;
            padding-top: 100px;
            text-align: center;
        }

        .tag {
            background: rgb(149, 178, 255);
            color: #fff;
            border-radius: 10px;
            padding: 3px 8px;
            margin: 3px;
            font-size: 14px;
            margin-right: 4px;
            line-height: 20px;
            cursor: pointer;
        }

        .tag:hover {
            background: #eee4ad;
            color: #444;
        }

        .introduce {
            align-items: center;
            justify-items: center;
            padding: 25px 10px 0 35px;
            width: 100%;
            height: 100%;
            overflow: hidden;
            word-wrap: break-word;
            overflow-wrap: break-word;
            hyphens: auto;
        }

        .introduce p {
            margin: 0;
            line-height: 1.6;
            text-align: justify;
        }

        /* 响应式设计 - 页面高度不够时隐藏介绍文本 */
        @media (max-height: 800px) {
            .introduce {
                display: none;
            }
            
            .tags {
                width: 100%;
                padding-top: 50px;
                text-align: center;
            }
            
            .foot {
                display: flex;
                flex-direction: column;
                align-items: center;
                justify-content: center;
            }
        }

        /* 中等高度时减少内边距和限制高度 */
        @media (max-height: 700px) and (min-height: 601px) {
            .introduce {
                padding-top: 15px;
                max-height: 120px;
                overflow: hidden;
            }
        }

        /* 小高度时完全隐藏 */
        @media (max-height: 500px) {
            .introduce {
                display: none;
            }
            
            .tags {
                padding-top: 30px;
            }
            
            .head {
                height: 280px;
            }
            
            .cover {
                top: 150px;
                width: 160px;
                height: 160px;
            }
            
            .data {
                padding: 150px 0 0 220px;
            }
        }
    </style>

        .social-links {
            display: flex;
            justify-content: center;
            align-items: center;
            gap: 20px;
            padding: 20px 0;
            margin-top: 10px;
        }

        .social-link {
            display: flex;
            align-items: center;
            justify-content: center;
            width: 40px;
            height: 40px;
            border-radius: 50%;
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            color: white;
            text-decoration: none;
            transition: all 0.3s ease;
            box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
        }

        .social-link:hover {
            transform: translateY(-3px);
            box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
            background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
        }

        .social-icon {
            width: 24px;
            height: 24px;
        }

        /* 微信图标特殊样式 */
        .social-link[title="微信"] {
            background: linear-gradient(135deg, #07c160 0%, #05a54f 100%);
        }

        .social-link[title="微信"]:hover {
            background: linear-gradient(135deg, #05a54f 0%, #07c160 100%);
        }

        /* QQ图标特殊样式 */
        .social-link[title="QQ"] {
            background: linear-gradient(135deg, #12b7f5 0%, #0e9ae0 100%);
        }

        .social-link[title="QQ"]:hover {
            background: linear-gradient(135deg, #0e9ae0 0%, #12b7f5 100%);
        }

        /* 力扣图标特殊样式 */
        .social-link[title="力扣"] {
            background: linear-gradient(135deg, #ffa116 0%, #f90 100%);
        }

        .social-link[title="力扣"]:hover {
            background: linear-gradient(135deg, #f90 0%, #ffa116 100%);
        }

        /* Gitee图标特殊样式 */
        .social-link[title="Gitee"] {
            background: linear-gradient(135deg, #c71d23 0%, #a5181d 100%);
        }

        .social-link[title="Gitee"]:hover {
            background: linear-gradient(135deg, #a5181d 0%, #c71d23 100%);
        }
